<div class="hd-20170118">
    <div class="hd-banner-bg banner-bg1">
      <div class="hd-banenr">
        <div class="banner-text">
            Entrar <a href="#">Geekvida.es >></a>
        </div>
      </div>
    </div>
    <div class="notice-container">
      <p class="message">
        Nota : <br>
        Durante la Fiesta de Primavera china (25/01/2017-4/02/2017 ),no envío desde china, solo envío desde España,entrega 2-3 días laborales.<br>
        Sentimos mucho por las molestias,y muchas gracias por su apoyo y comprensión.
      </p>
    </div>
   <div class="hd-main-content">    
        <div class="hd-display-block w1005">
          <div class="panel-layout">
            <img src="./images/201701188.png">
            <ul>
              <li><a class="hdPageLInk" href="#display1">XIAOMI</a></li>
              <li><a class="hdPageLInk" href="#display2">iPhone</a></li>
              <li><a class="hdPageLInk" href="#display3" style="font-size: 14px; line-height: 15px; padding: 5px 0px;">Móviles Reformados</a></li>
              <li><a class="hdPageLInk" href="#display4">GADGETS</a></li>
              <li class="hdLinkTop">
                  <img src="./images/201701189.png">
                  <a class="hdPageLInk" href="#Top"></a>
              </li>
            </ul>

          </div>
        </div>
    </div>
  <style>
    .hd-20170118{background: #d0121e;min-width: 1300px;}
    .hd-20170118 .banner-bg1{background: url(./images/201701181.jpg)no-repeat center top;height:725px;min-width: 1300px;position: relative;}
    .hd-20170118 .hd-banenr{height:725px;position: relative;width: 1103px;margin: 0px auto;}
    .hd-banenr .banner-text{position: absolute; right: 0px; font-size: 14px; width: 160px; text-align: center;background: #d0121e; padding: 5px; color: #fff;}
    .title-content .subtitle{ margin: 0px; color: #fff; padding-top: 8px;}
    .hd-banenr .banner-text a {color:#FEF102;}
    .notice-container .message{ color: #fff; text-align: left; width: 1045px; margin:12px auto 16px; font-size: 16px; line-height: 30px;}
    .hd-main-content {background: url(./images/201701181.png) repeat-y center 0px;}
    .hd-main-content .hd-display-container {background: url(./images/201701182.png) no-repeat center top;text-align: center;padding-bottom:55px;}
    .title-content .w1005 {position: relative;height:215px;}
    .hd-display-block .display {text-align:center;background: url(./images/201701184.png) repeat-y center top;}
    .small-list .discount-number2{ position: absolute; height: 66px; width: 54px; font-size: 19px; color: #fff; top: 0px; right: 0px; line-height: 76px; text-align: center; background: url(./images/201701187.png) no-repeat center;}
    ul li.small-list {width:191px;margin:3px;background:#fff;border: 1px solid #d2d2d2;}
    .hd-main-content .old-price {font-size: 14px;text-decoration: line-through;color:#d0121e;display: block;margin-top:5px; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
    .hd-main-content .current-price { font-size: 28px;font-weight: bold;color: #d0121e;line-height: 22px;}
    .hd-main-content .small-list:hover .old-price {opacity: 0;}
    .title-content .title-detail {text-align: center; padding-top: 18px;margin: 0px;}
    .small-list .hd-btn-buy{width: 100%; position: absolute; left: 0px; bottom: -50px;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
    .small-list:hover .hd-btn-buy {bottom:0px;}
    ul li.small-list:before{pointer-events: none;position: absolute;z-index: -1;content: '';top: 100%;left: 5%;height: 10px;width: 90%;opacity: 0;background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);-webkit-transition-duration: 0.3s;transition-duration: 0.3s;-webkit-transition-property: transform, opacity;transition-property: transform, opacity;}
    ul li.small-list:hover:before{opacity: 1;-webkit-transform: translateY(5px);transform: translateY(5px);}
    .hd-20170118 ul li {float: left;position: relative;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
    .hd-product-list .lis1 {margin:0px;}
    ul li.small-list:hover,.product-list ul li:hover {transform: translateY(-6px);-webkit-transform: translateY(-6px); -o-transform: translateY(-6px); -ms-transform: translateY(-6px); -moz-transform: translateY(-6px);}
    ul li.small-list .product-img {width: 100%; padding: 10px; box-sizing: border-box;}
    .small-list .hd-link-img {display: block; text-align: center; font-size: 14px; height: 280px; overflow: hidden; position: relative;color:#666;}
    .small-list .hd-link-img:hover {color:#666;}
    .hd-link-img .product-info {display: block;height:30px;line-height:15px;overflow: hidden;margin-top:5px;}
    .panel-layout{width: 159px; height:363px; position: fixed; top: 0; margin-left: 1025px;-webkit-transform: scale(0.01); -moz-transform: scale(0.01); -o-transform: scale(0.01); -ms-transform: scale(0.01); transform: scale(0.01); -webkit-transition: all .6s linear 0s; -moz-transition: all .6s linear 0s; -o-transition: all .6s linear 0s; -ms-transition: all .6s linear 0s; transition: all .6s linear 0s; visibility: hidden; text-align: center;}
    .panel-layout.active { visibility: visible; -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1);}
    .panel-layout ul {position: absolute; left: 0px; width: 100%; top: 26px;}
    .panel-layout ul li{list-style: none; width: 100%;background: url(./images/2017011810.png) repeat-y center;margin:0px;}
    .panel-layout ul li a{ display: block; width: 88%; color: #fff; text-align: center; font-size: 16px; height: 100%; line-height: 32px; text-transform: uppercase; background: #c40304; margin: 0px auto 5px; border-radius: 25px;}
    .panel-layout ul li.current a,.panel-layout ul li a:hover{color:#fff100;}
    .panel-layout ul li.hdLinkTop {background:none;position: relative;}
    .panel-layout ul li.hdLinkTop a {width: 49px; height: 30px; background: none; position: absolute; top: 50px; left: 55px;}  
   
  </style>

  <script type="text/javascript">
    (function($){
        $(function(){
          var str1 = '', str2 = '';
          for(var i = 0; i < 15; i++){
            str1 += ` <li class="small-list">
                      <a class="hd-link-img" href="#">
                        <img class="product-img" src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado">
                        <span class="product-info">Blackview Ultra A6 Plus 2GB 16GB Dorado</span>
                        <span class="old-price">129.95€</span>
                        <span class="current-price">99.95€</span>
                        <img class="hd-btn-buy" src="./images/201701182.jpg" alt="comprar">
                      </a>
                       <span class="discount-number2">-25€</span>
                    </li>`
          }
          
          for(var i = 0; i < 4; i++){
            str2 += `<div class="hd-display-container" id="display${i+1}">
                      <div class="hd-display-block">
                        <div class="title-content">
                          <div class="w1005">
                            <h2 class="title-detail"><img src="./images/201701186.png" alt="xiaomi"></h2>
                            <p class="subtitle">
                              ¡Muy Buen Rendimiento，precio económico!
                            </p>
                          </div>
                        </div>
                        <div class="display">
                          <div class="hd-product-list w1005">
                              <ul class="lis1 clearfloat">${str1}</ul>
                          </div>
                        </div>
                        <img src="./images/201701185.png">
                      </div>
                    </div>`;
          }
          $(".hd-main-content").prepend(str2);


          var sideNav = $(".panel-layout");
          $(window).on("scroll",function(){
            var sideNavShow = $(".hd-banner-bg").offset().top + $(".hd-banner-bg").outerHeight(true)-200;
            var modTop = [];
            if($(this).scrollTop()>=sideNavShow){
                sideNav.addClass("active");
              }
              else{
                sideNav.removeClass("active");
              }
            
            for (var i = 0; i < $(".panel-layout ul li .hdPageLInk").length - 1; i++) {
                modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top-5;

                if ($(window).scrollTop() >= modTop[i]) {
                  $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
                };
              };
          });
          
          sideNav.find("li").find(".hdPageLInk").on("click",function(e){
            e.preventDefault();
            var aHash = this.hash;
            $("html,body").animate({
              scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top
            });
          });
        });
    })(jQuery); 
  </script>